package com.kinghood.productcenter.common.model.dao.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author KingHood
 * @since 2024-01-15
 */
@Data
@Accessors(chain = true)
@TableName("user_search_setting")
public class UserSearchSettingDO implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final int BUSINESS_TYPE_SEARCH = 1;
    public static final int BUSINESS_TYPE_SHOW = 2;

    @TableId("id")
    private Long id;

    /**
     * 自定义的code值
     */
    @TableField("code")
    private String code;

    /**
     * 0：系统code，1：属性code
     */
    @TableField("code_type")
    private Integer codeType;

    /**
     * 业务类型：0：款式搜索，1，款式展示
     */
    @TableField("business_type")
    private Integer businessType;

    /**
     * 前端页面唯一标识
     */
    @TableField("business_code")
    private String businessCode;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
}
